# Drone CI config for building Hexo sites with Codeberg.org

Create your Hexo site on a directory, such as `src`.

```
hexo init src
cd src
npm install
```

Edit `_config.yml`. Change `public_dir: public` to `public_dir: ../`

Put the `.drone.yml` on the repo root directory. Change:

- `remote` - paste in your repo's ssh url
- `branch` - the branch you want to push the results (usually `main` or `master`)
- `author_name` - commit author (appears on commit info nothing else)
- `author_email` - commit author email (appears on commit info nothing else)

Check [../codeberg-push/README.md](../codeberg-push/README.md#instructions) for details on how to setup ssh keys and stuff.

## Demo

[https://hexo-test.codeberg.page/](https://hexo-test.codeberg.page/) - [source repo](https://codeberg.org/hexo-test/pages)
